package generator

import "beergo/plugins/maker"

func init() {
	Job()
	JobApply()
}

func Job() {
	c := maker.CreateTable("Job","岗位","hr")
	c.AddManyToOne("company","单位","check.Org").SetSrcDir("check")
	c.AddManyToOne("category","行业","Category")
	c.AddTitle()
	c.AddManyToOne("degree","学历","Degree")
	c.AddManyToOne("experience","工作经验","Experience")
	c.AddFloat("moneyMin","工资下限")
	c.AddFloat("moneyMax","工资上限")
	c.AddText("moneyText","工资")
	c.AddArt("intro","职位描述")

	c.AddCreateAt()
	c.AddUpdateAt()
	c.Generate()
}

func JobApply() {
	c := maker.CreateTable("JobApply","简历提交","hr")
	c.AddManyToOne("job","工作","Job")
	c.AddManyToOne("file","简历","ProfileMain")
	c.AddState()
	c.AddText("note","备注")
	c.AddCreateAt()
	c.Generate()
}